
const VueMixin = {
  methods: {
    getRowClass ({ row, column, rowIndex, columnIndex }) {
      if (rowIndex === 0) {
        return 'font-weight:200;background-color:#FBFBFF;color:black;'
      } else {
        return ''
      }
    }
  }
}
export const nomalPages = {
  mounted () {
    this.getAllData()
  },
  methods: {
    refresh () {
      this.form = {}
      this.getAllData()
    },
    handleSizeChange (val) {
      this.pageSize = val
      this.getAllData()
    },
    handleCurrentChange (val) {
      this.currentPage = val
      this.getAllData()
    },
    close (formName) {
      this[formName] = this.$options.data.call(this)[formName]
      this.$refs[formName].resetFields()
    }
  }
}

export default VueMixin
